<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>编辑头像</title>
    <link rel="stylesheet" href="../../css/aui.css" />

</head>
<body style="cursor: pointer;">
    <header class="aui-bar aui-bar-nav" style="background: #3CB0D6;" id="header">
        <a class="aui-pull-left aui-btn">
            <span class="aui-iconfont aui-icon-left" onclick="closeWin()"></span>
        </a>
        <div class="aui-title">编辑头像</div>
        <a class="aui-pull-right aui-btn">
            <span class="aui-iconfont aui-icon-my" onclick="backHome()"></span>
        </a>
    </header>
</body>
</html>
<script type="text/javascript" src="../../script/aui/api.js"></script>
<script type="text/javascript" src="../../script/extend/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
apiready = function (){
  api.parseTapmode();
  var header = $api.byId('header');
  $api.fixStatusBar(header);
  var headerPos = $api.offset(header);
  api.openFrame({
      name : 'modify_avatar_frm',
      url : './modify_avatar_frm.html',
      bounces : false,
      rect : {
          x : 0,
          y : headerPos.h,
          w : 'auto',
          h : api.winHeight - headerPos.h //处理底部消息显示不全问题
      }
  })
};
function backHome () {
  api.closeToWin({
      name: 'main'
  });
}
</script>
